Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NDocumentView<TDoc,TDocContent,TDocFormat,TDocFormatRegistry,TDocLoadSettings,TDocSaveSettings> Class / SaveToStream Method


In This Topic
    SaveToStream Method (NDocumentView<TDoc,TDocContent,TDocFormat,TDocFormatRegistry,TDocLoadSettings,TDocSaveSettings>)
    In This Topic
    Saves the document to the specified stream.
    Syntax
    'Declaration
     
    
    Public Sub SaveToStream( _
       ByVal stream As System.IO.Stream, _
       Optional ByVal documentFormat As TDocFormat, _
       Optional ByVal saveSettings As TDocSaveSettings, _
       Optional ByVal progress As NProgress _
    ) 
    'Usage
     
    
    Dim instance As NDocumentView(Of TDoc,TDocContent,TDocFormat,TDocFormatRegistry,TDocLoadSettings,TDocSaveSettings)
    Dim stream As System.IO.Stream
    Dim documentFormat As TDocFormat
    Dim saveSettings As TDocSaveSettings
    Dim progress As NProgress
     
    instance.SaveToStream(stream, documentFormat, saveSettings, progress)
    public void SaveToStream( 
       System.IO.Stream stream,
       TDocFormat documentFormat,
       TDocSaveSettings saveSettings,
       NProgress progress
    )

    Parameters

    stream
    documentFormat
    saveSettings
    progress
    Exceptions
    ExceptionDescription
    The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.
    Represents errors that occur during application execution.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also